package com.jshoperxms.entity;

import javax.persistence.*;

/**
 * Created by sdywcd on 2018/11/26.
 * Des:
 */
@Entity
@Table(name = "sys_msgcontent_t", schema = "jshoperxms", catalog = "")
public class SysMsgcontentT {
    private String id;
    private String msgcontent;

    @Id
    @Column(name = "ID", nullable = false, length = 25)
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "MSGCONTENT", nullable = false, length = 2000)
    public String getMsgcontent() {
        return msgcontent;
    }

    public void setMsgcontent(String msgcontent) {
        this.msgcontent = msgcontent;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SysMsgcontentT that = (SysMsgcontentT) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (msgcontent != null ? !msgcontent.equals(that.msgcontent) : that.msgcontent != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (msgcontent != null ? msgcontent.hashCode() : 0);
        return result;
    }
}
